#!/usr/bin/env python
# -*- coding: utf-8 -*-
# @Author  : lei.wang
from enum import Enum


class UserGenderEnum(int, Enum):

    MALE = 1
    FEMALE = 2
    OTHER = 3

    @classmethod
    def choices(cls):
        return (
            (cls.MALE, "male"),
            (cls.FEMALE, "female"),
            (cls.OTHER, "other"),
        )


class RedEnvelopEnum(int, Enum):

    NoWithdrawal = 0
    Paid = 1

    @classmethod
    def choices(cls):
        return (
            (cls.NoWithdrawal, "未提现"),
            (cls.Paid, "已支付"),
        )


class RedEnvelopSendStatusEnum(int, Enum):

    NotGetOverWithExpired = 1
    NotGetOverWithNotExpired = 2
    Over = 3

    @classmethod
    def choices(cls):
        return (
            (cls.NotGetOverWithExpired, "未领取完(红包过期)"),
            (cls.NotGetOverWithNotExpired, "未领取完(红包未过期)"),
            (cls.Over, "领取完"),
        )


class RedEnvelopReceiveIsWithdrawEnum(int, Enum):
    NoWithdrawal = 0
    Withdraw = 1

    @classmethod
    def choices(cls):
        return (
            (cls.NoWithdrawal, "未提现"),
            (cls.Withdraw, "已提现"),
        )
